package com.changgou.pay;


import com.github.wxpay.sdk.MyConfig;
import com.github.wxpay.sdk.WXPay;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class PayApplication {
    public static void main(String[] args) {

        SpringApplication.run(PayApplication.class,args);
    }

    @Bean
    public WXPay wxPay(){
        return new WXPay(new MyConfig());
    }
}
